package com.jack.vipmis.vip.member.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.jack.vipmis.common.repository.BaseRepository;
import com.jack.vipmis.vip.member.entity.Member;

/**
 * 
 * @author JackLiang
 * @date 2014-7-4
 * @version 1.0
 */
public interface MemberRepository extends BaseRepository<Member, Long> {

	Member findByFirstName(String fieldValue);

	@Query("from Member t where t.phone=:phone and  t.pwd=:pwd ")
	Member login(@Param("phone") long phone, @Param("pwd") String pwd);

	Member findByPhone(Long phone);

}
